<template>
	<view class="message-container">
		<view class="messageHead">
			<view class="messageTitle">
				{{messageList.messageTitle}}
			</view>
			<view class="messageDetails">
				<view class="messageAuthor">
					{{messageList.messageAuthor}}
				</view>
				<view class="messageTime">
					{{messageList.messageTime}}
				</view>
				<view class="messageLocation">
					{{messageList.messageLocation}}
				</view>
			</view>
		</view>
		<view class="messageBody">
			{{messageList.messageBody}}
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messageId: null,
				messageList: {
					messageTitle: '汕头农业发展迅速，突破历史新高！！',
					messageAuthor: '小仲同学',
					messageTime: '2023-01-11  10:00',
					messageLocation: '发布于汕头',
					messageBody: '',
				}
			};
		},
		
		methods: {
			
		},
		
		onLoad(loading) {
			// this.messageId = loading.messageId
			// console.log(this.messageId);
		}
	}
</script>

<style lang="scss">
	.message-container {
		padding: 0 10px;
		
		.messageHead {
			margin-top: 20px;
			.messageTitle {
				margin-bottom: 10px;
				font-size: 20px;
			}
			
			.messageDetails {
				display: flex;
				flex-direction: row;
				// width: 100%;
				.messageAuthor {
					color: #0F40F5;
				}
				.messageTime {
					margin: 0 10px;
				} 
				.messageLocation {
					
				}
			}
		}
		
		.messageBody {
			
		}
	}
</style>
